import Service from './$axios'
import { appName } from '../config';
// const appName = ''



// 过程记录生成[1]
export const addQualityStandard = () => {
    return Service({
        url: `${appName}/qualityApi/addQualityStandard`,
        method: 'get'
    })
}

// 列表查询[2]
export const findPlanAll = (data) => {
    return Service({
        url: `${appName}/qualityApi/findPlanAll`,
        method: 'post',
        data: data
    })
}

// 修改结果[3]
export const updateCheckResult = (data) => {
    return Service({
        url: `${appName}/qualityApi/updateCheckResult`,
        method: 'post',
        data: data
    })
}

// 列表详情查询[4]
export const findPlanDetailsAll = (data) => {
    return Service({
        url: `${appName}/qualityApi/findPlanDetailsAll?${data}`,
        method: 'get'
    })
}

// 修改列表详情[5]
export const updateDetails = (data) => {
    return Service({
        url: `${appName}/qualityApi/updateDetails`,
        method: 'post',
        data: data
    })
}

// 生成批号工序自检表单[6]（未使用）
export const generateFromCheck = (data) => {
    return Service({
        url: `${appName}/qualityApi/generateFromCheck`,
        method: 'post',
        data: data
    })
}

// 自检表单查询[7]
export const findFromCheck = (data) => {
    return Service({
        url: `${appName}/qualityApi/findFromCheck`,
        method: 'post',
        data: data
    })
}

// 自检表单详情查询[8]
export const findFromCheckDetails = (data) => {
    return Service({
        url: `${appName}/qualityApi/findFromCheckDetails?uniquetype=${data}`,
        method: 'get',
    })
}

// 修改自检表单结果|删除[8]
export const updateFromCheckResult = (data) => {
    return Service({
        url: `${appName}/qualityApi/updateFromCheckResult`,
        method: 'post',
        data: data
    })
}

// 自检表单详情修改[9]
export const updateFromCheckDetails = (data) => {
    return Service({
        url: `${appName}/qualityApi/updateFromCheckDetails`,
        method: 'post',
        data: data
    })
}

//装配进度查询 ${appName}
export const queryAssembly = (data) => {
    return Service({
        url: `${appName}/productionProcess/queryAssembly`,
        method: 'post',
        data: data
    })
}
//机位总览查询
export const querySeat= (data) => {
    return Service({
        url: `${appName}/productionProcess/querySeat`,
        method: 'post',
        data: data
    })
}